package com.simple.piger.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author baolw
 * @since 2020-02-06
 */
@TableName("area_district")@Data
public class AreaDistrict extends Model<AreaDistrict> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
	@TableField("city_code")
	private String cityCode;
	private String level;
	private String name;
	@TableField("post_code")
	private String postCode;
	private String route;
	private Integer sort;
	@TableField("parent_id")
	private Long parentId;


	@Override
	protected Serializable pkVal() {
		return this.id;
	}
}
